<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Freetype OpenGL: vertex_buffer_t Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="style.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="content"><!-- do not remove this div! -->

<div id="top"><!-- do not remove this div! -->

  
  <div id="titlearea">
    
    <div id="projectname">Freetype OpenGL</div>
    
    
    <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
    
  </div>
  

<!--

<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Freetype OpenGL
   &#160;<span id="projectnumber">0.1</span>
   </div>
   <div id="projectbrief">A high quality OpenGL text rendering engine for C</div>
  </td>
  
  
  
   
  
 </tr>
 </tbody>
</table>
</div>
-->


<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript" src="dynsections.js"></script>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">vertex_buffer_t Struct Reference<div class="ingroups"><a class="el" href="group__vertex-buffer.html">Vertex buffer</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Generic vertex buffer. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="demo-atb-agg_8c-example.html#_a0">demo-atb-agg.c</a>, <a class="el" href="demo-benchmark_8c-example.html#_a2">demo-benchmark.c</a>, <a class="el" href="demo-cartoon_8c-example.html#_a2">demo-cartoon.c</a>, <a class="el" href="demo-console_8c-example.html#_a3">demo-console.c</a>, <a class="el" href="demo-font_8c-example.html#_a0">demo-font.c</a>, <a class="el" href="demo-gamma_8c-example.html#_a1">demo-gamma.c</a>, <a class="el" href="demo-outline_8c-example.html#_a1">demo-outline.c</a>, and <a class="el" href="demo-subpixel_8c-example.html#_a1">demo-subpixel.c</a>.</dd>
</dl></div><table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:abf68b059413abc5d898c10904521c2c9"><td class="memItemLeft" align="right" valign="top">char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#abf68b059413abc5d898c10904521c2c9">format</a></td></tr>
<tr class="memdesc:abf68b059413abc5d898c10904521c2c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Format of the vertex buffer.  <a href="#abf68b059413abc5d898c10904521c2c9"></a><br/></td></tr>
<tr class="memitem:a54efd077fb2990b3679d060baaa021ec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structvector__t.html">vector_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#a54efd077fb2990b3679d060baaa021ec">vertices</a></td></tr>
<tr class="memdesc:a54efd077fb2990b3679d060baaa021ec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vector of vertices.  <a href="#a54efd077fb2990b3679d060baaa021ec"></a><br/></td></tr>
<tr class="memitem:a3019a0907b688342301d74731da8c2c5"><td class="memItemLeft" align="right" valign="top">GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#a3019a0907b688342301d74731da8c2c5">vertices_id</a></td></tr>
<tr class="memdesc:a3019a0907b688342301d74731da8c2c5"><td class="mdescLeft">&#160;</td><td class="mdescRight">GL identity of the vertices buffer.  <a href="#a3019a0907b688342301d74731da8c2c5"></a><br/></td></tr>
<tr class="memitem:a95e22c6a05d97a057fc71bd38a1d2175"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structvector__t.html">vector_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#a95e22c6a05d97a057fc71bd38a1d2175">indices</a></td></tr>
<tr class="memdesc:a95e22c6a05d97a057fc71bd38a1d2175"><td class="mdescLeft">&#160;</td><td class="mdescRight">Vector of indices.  <a href="#a95e22c6a05d97a057fc71bd38a1d2175"></a><br/></td></tr>
<tr class="memitem:a0f05a827428451421a7a2c99bec3ae93"><td class="memItemLeft" align="right" valign="top">GLuint&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#a0f05a827428451421a7a2c99bec3ae93">indices_id</a></td></tr>
<tr class="memdesc:a0f05a827428451421a7a2c99bec3ae93"><td class="mdescLeft">&#160;</td><td class="mdescRight">GL identity of the indices buffer.  <a href="#a0f05a827428451421a7a2c99bec3ae93"></a><br/></td></tr>
<tr class="memitem:a91ae728d664e87cee290e1bdd2f98b6d"><td class="memItemLeft" align="right" valign="top">GLenum&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#a91ae728d664e87cee290e1bdd2f98b6d">mode</a></td></tr>
<tr class="memdesc:a91ae728d664e87cee290e1bdd2f98b6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">GL primitives to render.  <a href="#a91ae728d664e87cee290e1bdd2f98b6d"></a><br/></td></tr>
<tr class="memitem:ae19c17cfbb59a81cbfa7d5af2c336e7b"><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#ae19c17cfbb59a81cbfa7d5af2c336e7b">dirty</a></td></tr>
<tr class="memdesc:ae19c17cfbb59a81cbfa7d5af2c336e7b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Whether the vertex buffer needs to be uploaded to GPU memory.  <a href="#ae19c17cfbb59a81cbfa7d5af2c336e7b"></a><br/></td></tr>
<tr class="memitem:aba48b4d0cd079739d4a89d3c3f29a187"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aba48b4d0cd079739d4a89d3c3f29a187"></a>
<a class="el" href="structvector__t.html">vector_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#aba48b4d0cd079739d4a89d3c3f29a187">items</a></td></tr>
<tr class="memdesc:aba48b4d0cd079739d4a89d3c3f29a187"><td class="mdescLeft">&#160;</td><td class="mdescRight">Individual items. <br/></td></tr>
<tr class="memitem:ab54b50b1609cf48995b5284bfa9eea6f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="structvertex__attribute__t.html">vertex_attribute_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structvertex__buffer__t.html#ab54b50b1609cf48995b5284bfa9eea6f">attributes</a> [<a class="el" href="group__vertex-attribut.html#ga9555c2d7b2932a0f83629c11fd863c7a">MAX_VERTEX_ATTRIBUTE</a>]</td></tr>
<tr class="memdesc:ab54b50b1609cf48995b5284bfa9eea6f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Array of attributes.  <a href="#ab54b50b1609cf48995b5284bfa9eea6f"></a><br/></td></tr>
</table>
<hr/><h2>Field Documentation</h2>
<a class="anchor" id="ab54b50b1609cf48995b5284bfa9eea6f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structvertex__attribute__t.html">vertex_attribute_t</a>* <a class="el" href="structvertex__buffer__t.html#ab54b50b1609cf48995b5284bfa9eea6f">vertex_buffer_t::attributes</a>[<a class="el" href="group__vertex-attribut.html#ga9555c2d7b2932a0f83629c11fd863c7a">MAX_VERTEX_ATTRIBUTE</a>]</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Array of attributes. </p>

</div>
</div>
<a class="anchor" id="ae19c17cfbb59a81cbfa7d5af2c336e7b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="structvertex__buffer__t.html#ae19c17cfbb59a81cbfa7d5af2c336e7b">vertex_buffer_t::dirty</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Whether the vertex buffer needs to be uploaded to GPU memory. </p>

</div>
</div>
<a class="anchor" id="abf68b059413abc5d898c10904521c2c9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="structvertex__buffer__t.html#abf68b059413abc5d898c10904521c2c9">vertex_buffer_t::format</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Format of the vertex buffer. </p>

</div>
</div>
<a class="anchor" id="a95e22c6a05d97a057fc71bd38a1d2175"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structvector__t.html">vector_t</a>* <a class="el" href="structvertex__buffer__t.html#a95e22c6a05d97a057fc71bd38a1d2175">vertex_buffer_t::indices</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Vector of indices. </p>

</div>
</div>
<a class="anchor" id="a0f05a827428451421a7a2c99bec3ae93"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLuint <a class="el" href="structvertex__buffer__t.html#a0f05a827428451421a7a2c99bec3ae93">vertex_buffer_t::indices_id</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>GL identity of the indices buffer. </p>

</div>
</div>
<a class="anchor" id="a91ae728d664e87cee290e1bdd2f98b6d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLenum <a class="el" href="structvertex__buffer__t.html#a91ae728d664e87cee290e1bdd2f98b6d">vertex_buffer_t::mode</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>GL primitives to render. </p>

</div>
</div>
<a class="anchor" id="a54efd077fb2990b3679d060baaa021ec"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structvector__t.html">vector_t</a>* <a class="el" href="structvertex__buffer__t.html#a54efd077fb2990b3679d060baaa021ec">vertex_buffer_t::vertices</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Vector of vertices. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="demo-atb-agg_8c-example.html#a20">demo-atb-agg.c</a>, <a class="el" href="demo-benchmark_8c-example.html#a22">demo-benchmark.c</a>, <a class="el" href="demo-cartoon_8c-example.html#a19">demo-cartoon.c</a>, and <a class="el" href="demo-outline_8c-example.html#a25">demo-outline.c</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a3019a0907b688342301d74731da8c2c5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">GLuint <a class="el" href="structvertex__buffer__t.html#a3019a0907b688342301d74731da8c2c5">vertex_buffer_t::vertices_id</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>GL identity of the vertices buffer. </p>

</div>
</div>
</div><!-- contents -->
</div>
</body>
</html>
